#!/usr/bin/python
# -*- coding: utf-8 -*-
# définit le contexte contenant les variables et leurs valeurs
class Context(object):
    def __init__(self, theLogger):
        # TODO: add initialization of context ( with dynamic properties)
        self._theLogger = theLogger
        self._configDic = {}
                
    def AddVariable(self,name,value):
        #TODO: Gérer la modification d'une entrée déjà dedans
        self._configDic[name] = value
        
    def RemoveVariable(self, name):
        del self._configDic[name]
    
    def ExpandString(self,theString):
        # TODO: remplacer variable par sa valeur
        return theString
    